<?php 
$permaUrl = Router::url(array('controller' => 'posts', 'action' => 'show', $post['Post']['id']), true);
$imageUrl = Router::url('/img/social-share.png', true);
if (!empty($post['Post']['image'])) {
	$imageUrl = Router::url(MEDIA_IMAGE_PATH_HTML . 'large/' . $post['Post']['image'], true);
}
//FB open graph
echo $this->Html->meta(array('property' => 'og:title', 'content' => $post['Post']['title']), null, array('inline' => false));
echo $this->Html->meta(array('property' => 'og:type', 'content' => 'article'), null, array('inline' => false));

echo $this->Html->meta(array('property' => 'og:description', 'content' => $post['Post']['description']), null, array('inline' => false));

echo $this->Html->meta(array('property' => 'og:url', 'content' => $permaUrl), null, array('inline' => false));

echo $this->Html->meta(array('property' => 'og:image', 'content' => $imageUrl), null, array('inline' => false));

echo $this->Html->meta(array('property' => 'article:published_time', 'content' => date('Y-m-d', strtotime($post['Post']['created']))), null, array('inline' => false));

echo $this->Html->meta(array('property' => 'og:site_name', 'content' => SITE_NAME), null, array('inline' => false));

echo $this->Html->meta(array('property' => 'fb:app_id', 'content' => FB_APP_ID), null, array('inline' => false));

echo $this->Html->meta(array('property' => 'og:locale', 'content' => 'sk_SK'), null, array('inline' => false));

//G+ schema.org
echo $this->Html->meta(array('itemprop' => 'name', 'content' => $post['Post']['title']), null, array('inline' => false));

echo $this->Html->meta(array('itemprop' => 'url', 'content' => $permaUrl), null, array('inline' => false));

echo $this->Html->meta(array('itemprop' => 'image', 'content' => $imageUrl), null, array('inline' => false));
?>